Skip to content

Add Flask web frontend for Conference User Creation PowerShell scripts#16

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-15
Draft

Add Flask web frontend for Conference User Creation PowerShell scripts#16
Copilot wants to merge 2 commits intomainfrom
copilot/fix-15

Conversation

Copy link
Contributor

Copilot AI commented Jul 11, 2025

This PR adds a locally running Python Flask web frontend that provides a user-friendly interface for generating PowerShell commands for the Conference User Creation scripts.

Features Added

🖥️ Complete Web Interface

  • Home Page: Overview with navigation to create/remove operations
  • Create Users Form: Comprehensive form capturing all New-ConferenceUsers.ps1 parameters
  • Remove Users Form: Safety-focused form for Remove-ConferenceUsers.ps1 parameters
  • Command Generation: Generates properly formatted PowerShell commands ready to copy and execute
  • About Page: Documentation with prerequisites and usage instructions

🎯 Key Functionality

Home Page with clear navigation:
Home Page

User-friendly form capturing all PowerShell script parameters:
Create Users Form

Generated PowerShell commands ready to copy and execute:
Command Result

📋 Parameters Supported

User Creation Parameters:

  • Conference Name, User Count (1-1000), Domain, Password settings
  • Force password change, Azure resource group creation options
  • Subscription ID, Azure location selection, Excel output path
  • Dry run mode for safe preview

User Removal Parameters:

  • Conference Name, Domain, Remove groups/resource groups options
  • Force mode, Dry run preview with safety confirmations

🛠️ Technical Implementation

  • Backend: Python Flask with form validation and command generation
  • Frontend: Bootstrap 5 responsive design with JavaScript enhancements
  • Validation: Real-time form validation with helpful error messages
  • Security: CSRF protection, input sanitization, safe defaults
  • UX: One-click command copying, safety warnings for destructive operations

🚀 Quick Start

# Install dependencies
pip install -r requirements.txt

# Run the web frontend
python app.py

# Navigate to http://localhost:5000

📁 Files Added

  • app.py - Main Flask application with routing and validation
  • requirements.txt - Python dependencies
  • templates/ - HTML templates for all pages
  • static/css/style.css - Custom styling and responsive design
  • static/js/script.js - JavaScript functionality and form enhancements
  • WEB_FRONTEND_README.md - Complete documentation for the web frontend
  • Updated .gitignore - Added Python-specific ignores

The web frontend successfully bridges the gap between the powerful PowerShell scripts and users who prefer a graphical interface, making the Conference User Creation tool more accessible while maintaining all the original functionality.

Fixes #15.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: tsimiz <60962498+tsimiz@users.noreply.github.com>
Copilot AI changed the title [WIP] Create locally running web frontend to enter all parameters of the confUserCreation script Add Flask web frontend for Conference User Creation PowerShell scripts Jul 11, 2025
Copilot AI requested a review from tsimiz July 11, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create locally running web frontend to enter all parameters of the confUserCreation script

2 participants